package com.cosina.game.crystallight.model.enemy;


public abstract class Life {
	
	public final int kind;
	public final int totalHp;
	public final int mana;
	protected int hp ;
	protected final int speed;
	public Life(int kind,int hp,int mane){
		this.kind = kind;
		this.speed = 2;
		this.totalHp = hp;
		this.hp = this.totalHp;
		this.mana = mane;
	}
	
	public abstract void hit(Ps ps);
	
	public float getHpPercent(){
		return (hp + 0.0f)/totalHp;
	}
	
	public boolean damage(){
		return hp != totalHp;
	}
	
	public boolean isDead(){
		return this.hp <= 0;
	}
}
